Documentation for Users  2.0.2
Perception Toolbox for Virtual Reality (PTVR) Manual
Position in 3D perimetric coordinates

General Goal : you want to create and place in the GLOBAL coordinate system (aka World coordinate system) an object whose position is defined by its three perimetric coordinates (eccentricity, half-meridian, radial distance).

Specific Goal : You want to create and place a small sphere at the position of the orange point P in Figure 1.

The perimetric coordinates of point P in the figures below are :

  • Eccentricity = 20°
  • Half-meridian = 135°
  • Radial distance = 1 meter (distance between the Origin and P, i.e the sphere radius)

PTVR fonction to use:
Apply the set_perimetric_coordinates() fonction to the already created object "my_sphere" as below:

my_sphere = PTVR.Stimuli.Objects.Sphere ()
...
my_sphere.set_perimetric_coordinates (eccentricity = 20, halfMeridian = 135, radialDistance = 1)


Figure 1: How to display the orange point P in the 3D perimetric coordinate system of PTVR. Figure 2: Same as figure 1 with a horizontal rotation to allow a better representation of the 3D structure of the figure.

Links

Demos

Python file

Description

2_create_object_in_perimetric_coord.py

Create an object and place it in the 3D global space with perimetric coordinates.